﻿using System;
using System.Collections.Generic;
using System.Web;
using System.ComponentModel;

namespace SRM.Entities
{
    public class FamilyMember
    {
        public long FamilyMemberKey { get; set; }
        public long ApplicantKey { get; set; }
        public string MemberName { get; set; }
        public string Relationship { get; set; }
        public DateTime? BirthDate { get; set; }
        public string Nationality { get; set; }

        //dt.Columns[0].DataType.ToString()//"System.Int64"         //FamilyMemberKey	bigint
        //dt.Columns[1].DataType.ToString()//"System.Int64"         //ApplicantKey	bigint
        //dt.Columns[2].DataType.ToString()//"System.String"        //MemberName	nvarchar
        //dt.Columns[3].DataType.ToString()//"System.String"        //Relationship	varchar
        //dt.Columns[4].DataType.ToString()//"System.DateTime"      //BirthDate	datetime
        //dt.Columns[5].DataType.ToString()//"System.String"        //Nationality	varchar

        public string FamilyEmployer { get; set; }
        public string Occupation { get; set; }
        public string EmergencyContact { get; set; }
        public string ContactNo { get; set; }
        public DateTime? Timestamp { get; set; }
        public DateTime? DateOfMarriage { get; set; }

        //dt.Columns[6].DataType.ToString()//"System.String"        //FamilyEmployer	varchar
        //dt.Columns[7].DataType.ToString()//"System.String"        //Occupation	nvarchar
        //dt.Columns[8].DataType.ToString()//"System.String"        //EmergencyContact	varchar
        //dt.Columns[9].DataType.ToString()//"System.String"        //ContactNo	varchar
        //dt.Columns[10].DataType.ToString()//"System.DateTime"     //Timestamp	datetime
        //dt.Columns[11].DataType.ToString()//"System.DateTime"     //DateOfMarriage	datetime
    }

    [DataObjectAttribute(true)]
    public class FamilyMemberManager
    {

    }
}